// Created by Xslt generator for Eclipse.
// XSL :  not found (java.io.FileNotFoundException:  (The system cannot find the path specified))
// Default XSL used : easystruts.jar$org.easystruts.xslgen.JavaClass.xsl

package com.ba360.struts.form;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;

/**
 * Form.java created by EasyStruts - XsltGen. http://easystruts.sf.net created
 * on 06-29-2004
 * 
 * XDoclet definition:
 * 
 * @struts:form name="YPListingsForm"
 */
public class YPListingsForm extends ActionForm {

	// --------------------------------------------------------- Instance
	// Variables

	/** phone property */
	private String phone;

	/** notes property */
	private String notes;

	/** category_id property */
	private String category_id;

	/** address property */
	private String address;

	/** url property */
	private String url;

	/** email property */
	private String email;

	/** state property */
	private String state;

	/** zip property */
	private String zip;

	/** name property */
	private String name;

	/** item_id property */
	private String item_id;

	/** city property */
	private String city;

	// --------------------------------------------------------- Methods

	/**
	 * Method validate
	 * 
	 * @param ActionMapping
	 *            mapping
	 * @param HttpServletRequest
	 *            request
	 * @return ActionErrors
	 */
	public ActionErrors validate(ActionMapping mapping,
			HttpServletRequest request) {

		throw new UnsupportedOperationException(
				"Generated method 'validate(...)' not implemented.");
	}

	/**
	 * Returns the phone.
	 * 
	 * @return String
	 */
	public String getPhone() {
		return phone;
	}

	/**
	 * Set the phone.
	 * 
	 * @param phone
	 *            The phone to set
	 */
	public void setPhone(String phone) {
		this.phone = phone;
	}

	/**
	 * Returns the notes.
	 * 
	 * @return String
	 */
	public String getNotes() {
		return notes;
	}

	/**
	 * Set the notes.
	 * 
	 * @param notes
	 *            The notes to set
	 */
	public void setNotes(String notes) {
		this.notes = notes;
	}

	/**
	 * Returns the category_id.
	 * 
	 * @return String
	 */
	public String getCategory_id() {
		return category_id;
	}

	/**
	 * Set the category_id.
	 * 
	 * @param category_id
	 *            The category_id to set
	 */
	public void setCategory_id(String category_id) {
		this.category_id = category_id;
	}

	/**
	 * Returns the address.
	 * 
	 * @return String
	 */
	public String getAddress() {
		return address;
	}

	/**
	 * Set the address.
	 * 
	 * @param address
	 *            The address to set
	 */
	public void setAddress(String address) {
		this.address = address;
	}

	/**
	 * Returns the url.
	 * 
	 * @return String
	 */
	public String getUrl() {
		return url;
	}

	/**
	 * Set the url.
	 * 
	 * @param url
	 *            The url to set
	 */
	public void setUrl(String url) {
		this.url = url;
	}

	/**
	 * Returns the email.
	 * 
	 * @return String
	 */
	public String getEmail() {
		if (email==null || email.length()>0)
			return "";
		return email;
	}

	/**
	 * Set the email.
	 * 
	 * @param email
	 *            The email to set
	 */
	public void setEmail(String email) {
		this.email = email;
	}

	/**
	 * Returns the state.
	 * 
	 * @return String
	 */
	public String getState() {
		return state;
	}

	/**
	 * Set the state.
	 * 
	 * @param state
	 *            The state to set
	 */
	public void setState(String state) {
		this.state = state;
	}

	/**
	 * Returns the zip.
	 * 
	 * @return String
	 */
	public String getZip() {
		return zip;
	}

	/**
	 * Set the zip.
	 * 
	 * @param zip
	 *            The zip to set
	 */
	public void setZip(String zip) {
		this.zip = zip;
	}

	/**
	 * Returns the name.
	 * 
	 * @return String
	 */
	public String getName() {
		return name;
	}

	/**
	 * Set the name.
	 * 
	 * @param name
	 *            The name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * Returns the item_id.
	 * 
	 * @return String
	 */
	public String getItem_id() {
		return item_id;
	}

	/**
	 * Set the item_id.
	 * 
	 * @param item_id
	 *            The item_id to set
	 */
	public void setItem_id(String item_id) {
		this.item_id = item_id;
	}

	/**
	 * Returns the city.
	 * 
	 * @return String
	 */
	public String getCity() {
		return city;
	}

	/**
	 * Set the city.
	 * 
	 * @param city
	 *            The city to set
	 */
	public void setCity(String city) {
		this.city = city;
	}

}